package bat;

import java.io.BufferedWriter;
import java.io.File;
import java.io.IOException;

import javax.per.toolkit.file.FileUtil;
import javax.per.toolkit.search.ff;

import tools.Env;

public class ffbat {
	public static void main(String[] main){
		Class<?> cla=ff.class;
		String batName="ff";
		String parm="";
		String batPath=Env.get("batPath")+File.separator+batName+".bat";
		try {
			BufferedWriter bw=FileUtil.getWriter(batPath);
			bw.write("@echo off\n");
			bw.write("call initjava.bat\n");
			bw.write("java "+cla.getName()+" "+parm+" \n");
			bw.close();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
